import SparkMD5 from 'spark-md5';

export function getFileSuffix(file) {
    return file.name.replace(/.+\./, '').toLowerCase();
}

export function computeMd5(file) {
    return SparkMD5.hash(`${file.name}-${file.type}-${file.size}`);
}
